<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/25
  Time: 12:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册结果页面</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/book.css">
  <style>
    div {
      width: 400px;
      margin: 1em auto;
      background: #eee;
      padding: 2em;
    }
    span {
      margin-right: 2em;
    }
  </style>
</head>
<body>
  <div>
<%--    获取后端 message 发送过来的结果--%>
    <span>${message}</span>
<%--  处理 login 中的 page 发送过来的结果
      empty page ? "/book/list" : page 类似于三元运算符判断
--%>
    <a href="${pageContext.request.contextPath}${empty page ? "/book/list" : page}">返回首页</a>
<%--    <a href="${pageContext.request.contextPath}/book/list">返回主页面</a>--%>
  </div>

<%--  页脚--%>
<%@include file="/footer.jsp"%>
</body>
</html>
